/**
 * @author liangxi
 * @since 2024/3/25
 */

#ifndef LOGGER_TIME_H
#define LOGGER_TIME_H

/**
 * 时间类实体
 */
class Time {
public:
    explicit Time(int year, int month, int day, int hour, int minute, int second) :
            mYear(year), mMonth(month), mDay(day), mHour(hour), mMinute(minute), mSecond(second) {}

    ///返回年
    int getYear() const { return mYear; }
    ///返回月
    int getMonth() const { return mMonth; }
    ///返回日
    int getDay() const { return mDay; }
    ///返回时
    int getHour() const { return mHour; }
    ///返回分
    int getMinute() const { return mMinute; }
    ///返回秒
    int getSecond() const { return mSecond; }

private:
    int mYear{0};
    int mMonth{0};
    int mDay{0};
    int mHour{0};
    int mMinute{0};
    int mSecond{0};
};


#endif //LOGGER_TIME_H
